class UrlMappings {

	static mappings = {

		"/"(view:"/index")
		"500"(view:'/error')
		
		name create: "/$controller/create" { action = [GET:"create"] }
		name edit: "/$controller/edit/$id" { action = [GET:"edit"] }
		name show: "/$controller/$id" { action = [GET:"show", PUT:"update", DELETE:"delete"] }
		name list: "/$controller/"(parseRequest:true) { action = [GET:"list", POST:"save"] }
	}
}
